﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace GarageManagement.Models
{
    public class Vehicle
    {
        public int VehicleId { get; set; }
        [StringLength(10)]
        [Required]        
        public string Registration { get; set; }
        [StringLength(255)]
        public string Model { get; set; }
        public int Year { get; set; }
        [StringLength(25)]
        public string Color { get; set; }
        [StringLength(25)]
        public string EngineSize { get; set; }
        public int Doors { get; set; }
        [StringLength(255)]
        public string Fuel { get; set; }
        [StringLength(255)]
        public string GearboxType { get; set; }
        public int Gears { get; set; }
        [StringLength(255)]
        public string EngineNumber { get; set; }
        [StringLength(255)]
        public string CylinderArrangement { get; set; }
        public int Cylinders { get; set; }
        public double Bore { get; set; }
        [StringLength(255)]
        public string Valves { get; set; }
        [StringLength(255)]
        public string ValveGear { get; set; }
        public double Height { get; set; }
        public double Width { get; set; }
        public double Length { get; set; }
        [ForeignKey("Manufacturer")]
        public int ManufacturerId { get; set; }
        public virtual Manufacturer Manufacturer { get; set; }
        [ForeignKey("Customer")]
        public int CustomerId { get; set; }
        public virtual Customer Customer { get; set; }
    }
}
